<?
function OpenFile($FileName)
	{	
		global $fout;
		$fout = fopen($FileName,'a');				
	}
	
	function writeFile($data)
	{		
		global $fout;
		fwrite($fout,$data);
		fwrite($fout,"\n");		
	}
	
	function CloseFile(){
		global $fout;
		fclose($fout);
	}
	
?>